﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="SouthernLand.Controls.ArticlesTop"
    CodeBehind="ArticlesTop.ascx.cs" %>
<%@ Register TagPrefix="southern" Namespace="SouthernLand.Common.Untilities" Assembly="SouthernLand" %>
<table width="100%" align="center" cellpadding="4" cellspacing="4">
    <asp:Repeater runat="server" ID="rptArticles">
        <ItemTemplate>
            <tr>
                <td align="left">
                    <div style="padding-bottom: 3pt;">
                        <a class="NewsTitle" href="<%=Globals.ApplicationPath%>Articles/ArticleDetail.aspx?ArticleID=<%# Eval("ArticleID")%>">
                            <b>
                                <%# Eval("Title") %></b> </a><span class="NewsTime">(<%# Formatter.FormatDateTime((DateTime)Eval("PostDate")) %>)</span>
                    </div>
                    <table cellspacing="5" class="<%#CheckImage(Convert.ToString(Eval("ImageURL"))) %>"
                        cellpadding="0" align="left" border="0">
                        <tbody>
                            <tr>
                                <td class="BorderImage">
                                    <southern:ImageObject Width="130" ImageFilter='off' BorderStyle="solid" ID="img1"
                                        runat="server" ImagePath='<%# Globals.ApplicationPath  + "UserUpload/Articles/" %>'
                                        ImageName='<%# Eval("ImageURL") %>' />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div style="text-align: justify; line-height: 18px">
                        <%#Eval("Excerpt") %>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" style="padding-right: 3pt; padding-bottom: 5px;">
                    <img src="<%=Globals.ImagesUrl()%>arrow.gif" />
                    <a class="ReadMore" href="<%=Globals.ApplicationPath%>Articles/ArticleDetail.aspx?ArticleID=<%# Eval("ArticleID")%>">
                        <%=ResourceManager.GetString("ReadMore") %></a>
                </td>
            </tr>
            <tr>
                <td style="background-repeat: repeat-x; padding: 3pt;" background="<%=Globals.ImagesUrl()%>pm_line.gif">
                </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
</table>
